package com.momo.cloudspringordertwo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: momo-cloud
 * @description: TODO
 * @author: Jie Li
 * @create: 2019-07-18 22:45
 **/
@RestController
@RequestMapping(value = "/order", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
@Slf4j
public class OrderController {

    @PostMapping("/getOrder/v1")
    public JSONResult getOrder() {
        log.info("order-2");
        return JSONResult.ok("order-2");
    }
}
